package com.yzh.design.demo.cuisine.impl;

import com.yzh.design.demo.cook.ICook;
import com.yzh.design.demo.cuisine.ICuisine;

public class JiangSuCuisine implements ICuisine {
    private ICook cook;
    public JiangSuCuisine(ICook cook) {
        this.cook = cook;
    }

    @Override
    public void cook() {
        cook.doCooking();
    }
}
